@mixin text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-container {
  min-height: 100vh;
  background: #eef0f6;
}

.rank-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(135deg, #4a6feb, #6e8efb);
  height: 180rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  padding-top: 0;
  
  .title {
    font-size: 44rpx;
    font-weight: bold;
    text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
    padding-top: env(safe-area-inset-top);
  }
}

.rank-list {
  padding: 0 20rpx 20rpx;
  margin-top: 180rpx;
  background: linear-gradient(180deg, #eef0f6, #e8ecf5);
  min-height: calc(100vh - 180rpx);
  
  .rank-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16rpx;
    margin-bottom: 20rpx;
    padding: 24rpx;
    display: flex;
    align-items: center;
    box-shadow: 0 4rpx 16rpx rgba(74, 111, 235, 0.06);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1rpx solid rgba(255, 255, 255, 0.3);
    
    .rank-badge {
      width: 48rpx;
      height: 48rpx;
      border-radius: 50%;
      background: #f0f0f0;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 20rpx;
      flex-shrink: 0;
      
      .rank-num {
        font-size: 24rpx;
        color: #666;
        font-weight: bold;
      }
      
      &.top1 {
        background: linear-gradient(135deg, #FFD700, #FFA500);
        box-shadow: 0 4rpx 12rpx rgba(255, 215, 0, 0.3);
        .rank-num { color: #fff; }
      }
      
      &.top2 {
        background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
        box-shadow: 0 4rpx 12rpx rgba(192, 192, 192, 0.3);
        .rank-num { color: #fff; }
      }
      
      &.top3 {
        background: linear-gradient(135deg, #CD7F32, #8B4513);
        box-shadow: 0 4rpx 12rpx rgba(205, 127, 50, 0.3);
        .rank-num { color: #fff; }
      }
    }
    
    .work-cover {
      width: 120rpx;
      height: 120rpx;
      border-radius: 12rpx;
      margin-right: 20rpx;
      background: #f5f5f5;
      flex-shrink: 0;
    }
    
    .info {
      flex: 1;
      min-width: 0;
      padding-right: 100rpx;
      
      .name {
        font-size: 30rpx;
        font-weight: bold;
        color: #333;
        margin-bottom: 12rpx;
        @include text-ellipsis;
      }
      
      .members {
        font-size: 26rpx;
        color: #666;
        margin-bottom: 12rpx;
        @include text-ellipsis;
      }
      
      .description {
        font-size: 24rpx;
        color: #999;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
      }
    }
    
    .vote-info {
      position: absolute;
      right: 24rpx;
      top: 50%;
      transform: translateY(-50%);
      display: inline-flex;
      align-items: baseline;
      background: rgba(255, 87, 87, 0.1);
      padding: 6rpx 16rpx;
      border-radius: 20rpx;
      
      .vote-count {
        font-size: 26rpx;
        color: #ff5757;
        font-weight: bold;
      }
      
      .vote-unit {
        font-size: 20rpx;
        color: #ff5757;
        margin-left: 4rpx;
      }
    }
  }
} 